package com.gh.enums;
/**
 * @author heyu
 * @date 2022:11:04 10:00
 * http 响应码类型
 */
public enum HttpCodeEnum {

    // 成功段0
    SUCCESS(200,"操作成功"),
    PARAM_REQUIRE(500,"缺少参数"),
    PARAM_INVALID(501,"无效参数"),
    SERVER_ERROR(503,"服务器内部错误,可能你写入的参数的数据类型不一样");

    int code;
    String message;

    HttpCodeEnum(int code, String message){
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
